package com.gxa.mobile.pojo.vo;

import com.gxa.service.GoodsRpcVo;

import java.math.BigDecimal;

/**
 *
 * @author : ch
 * @date : 2024-03-25 19:20
 *
 **/
public class GoodRpcVo extends GoodsRpcVo {

    //商品总数
    private Integer number;

    //商品总价
    private BigDecimal totalPrice;


    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Integer totalPrice) {
        this.totalPrice = BigDecimal.valueOf(this.getGoodsPrice().intValue()* this.number);
    }
}
